package com.vid.salverecruta;

import com.vid.salverecruta.R;

import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.Window;

public class MainActivity extends Activity {

	public static final String TAG = "Salve_o_Recruta";
	public View viewzinho;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);

		Log.i(TAG, "Iniciou");
		// setContentView(new ViewQuerido(this));
		setContentView(R.layout.menuzinho);
		viewzinho = new ViewQuerido(this);
	}

	public void iniciar(View v) {
		setContentView(viewzinho);
	}

	public void creditos(View v) {
		setContentView(R.layout.cred);
	}

	public void sair(View v) {
		finish();
	}

	public void url(View v) 
	{
		String urlinha = "https://play.google.com/store/apps/details?id=com.nave.segundaguerra";
		Intent intent = new Intent(Intent.ACTION_VIEW);
		intent.setData(Uri.parse(urlinha));
		super.getBaseContext().startActivity(intent);
	}

	public void menu(View v) 
	{
		setContentView(R.layout.menuzinho);
	}
}
